package com.itqf.service;

import com.itqf.bean.DtsAdmin;
import com.itqf.dto.DtsSearchDto;

import java.util.Map;

/**
 * projectName: sm_project
 *
 * @author: 赵伟风
 * time: 2021/7/13 14:11
 * description:用户业务类接口
 */
public interface DtsAdminService {

    /**
     * 根据用户名查询用户的实体对象
     * @param username
     * @return
     */
    DtsAdmin queryByUsername(String username);

    Map findAdminByPage(DtsSearchDto dto);

    boolean checkUserName(String username);

    DtsAdmin saveAdmin(DtsAdmin admin);

    int updateAdmin(DtsAdmin dtsAdmin);

    int removeAdminById(Integer id);
}
